def setup
  size 200, 200
  background 0
  max_distance = dist width/2, height/2, width, height
  grid width, height, 2, 2 do |x, y|
    stroke(255 * dist(width/2, height/2, x, y) / max_distance)
    point x, y
  end
end